<%= header %>
<%= boomerangScript %>
<script src="../../vendor/jquery/dist/jquery.js"></script>
<script src="../../vendor/handlebars/handlebars.js"></script>
<script src="../../vendor/backbone/backbone.js"></script>
<base href="/pages/09-backbone/27-route-change-back.html" />
<div id="content"></div>
<script>
window.backbone_imgs = [3000];

window.backbone_html5_mode = true;

// view a widget then come back using history.back after 2nd beacon
window.backbone_nav_routes = ["widgets/1"];
</script>
<script src="support/app.js"></script>
<script src="/test-templates/spa/04-route-change.js" type="text/javascript"></script>
<script src="27-route-change-back.js" type="text/javascript"></script>
<script>
var beaconNum = 0;
BOOMR.subscribe("beacon", function() {
	if (!BOOMR.plugins.AutoXHR) {
		return;
	}

	beaconNum++;
	if (beaconNum === 2) {
		setTimeout(function() {
			window.history.back();
		}, 200);
	}
});

BOOMR_test.init({
	testAfterOnBeacon: BOOMR.plugins.AutoXHR ? 3 : 1,
	Backbone: {
		enabled: true
	},
	instrument_xhr: true,
	autorun: false
});
</script>
<%= footer %>
